//
//  JGTGuideViewController.m
//  RunningMan
//
//  Created by Run on 16/5/21.
//  Copyright © 2016年 WSJ. All rights reserved.
//

#import "JGTGuideViewController.h"

@interface JGTGuideViewController ()
@property (retain, nonatomic)NSMutableArray *picArr;
@property (weak, nonatomic) IBOutlet UIImageView *picIV;

- (IBAction)Btn:(id)sender;

@property (weak, nonatomic) IBOutlet UIView *VIEW;



@end

@implementation JGTGuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.picArr = [NSMutableArray array];
    for (NSInteger i = 0; i < 8; i ++) {
        UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"4254%ld.gif",i]];
        [self.picArr addObject:image];
    }
    self.picIV.animationImages = self.picArr;
    self.picIV.animationDuration = 0.3;
    self.picIV.animationRepeatCount = 0;
    [self.picIV startAnimating];
    self.VIEW.backgroundColor = [UIColor colorWithRed:109 / 255.0 green:192 / 255.0 blue:172 / 255.0 alpha:1];
  
}
- (BOOL)prefersStatusBarHidden{
    return YES;
    
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    [self.view endEditing:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


- (IBAction)Btn:(id)sender {
     self.block();
}
@end
